package com.neuedu.vehicleanalysisapi.controller;

import com.neuedu.vehicleanalysisapi.pojo.aSoldEvTimes;
import com.neuedu.vehicleanalysisapi.util.ResponseBody;
import com.neuedu.vehicleanalysisapi.service.aSoldEvTimesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class aSoldEvTimesController {
    @Autowired
    private aSoldEvTimesService aSoldEvTimesService;

    @GetMapping("/queryAllSoldEvTimes")
    public ResponseBody<List<aSoldEvTimes>> queryAllSoldEvTimes() {
        List<aSoldEvTimes> aSoldEvTimes = aSoldEvTimesService.queryAllSoldEvTimes();
        ResponseBody responseBody = new ResponseBody("200", "成功", aSoldEvTimes);
        return responseBody;
    }
}
